def isPalindrome(s, start, end):
    a = start
    b = end
    while a < b:
        if s[a] != s[b]:
            return False
        a += 1
        b -= 1
    return True

def result(s):
    news = []
    for i in range(0, len(s)):
        for j in range(i):
            if isPalindrome(s, j, i):
                news.append(s[j:i+1])
    return news

s = "google"
print(result(s))
